<?php


namespace app\common\model;

class Comment extends BaseModel
{
    public function userInfo()
    {
        return $this->hasOne(User::class, "id", "user_id");
    }

    public function replyUserInfo()
    {
        return $this->hasOne(User::class, 'id', 'reply_user_id');
    }
}
